package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 站内消息层
 * 设置这个库是准备存放给企业站内消息，然后设置类型，比如是给所有企业
 * 或者给某一个媒体。
 * @author Administrator
 *
 */
@Entity
@Table(name="jm_messages")
public class Messages implements Serializable {

	
	private static final long serialVersionUID = 1L;
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="mess_id",nullable=false,unique=true,length=11)
	private Integer messId;//消息主键
	 @Column(name="type",nullable=false,length=2)
	private int type;//消息类型（1:所有企业.com_id为空,0:某一个企业,com_id不为空）
	 @Column(name="com_id",length=32)
	private String comId;//企业id
	 @Column(name="mess_value",nullable=false,length=10000)
	private String messValue;//消息内容
	 @Column(name="s_date",nullable=false,length=32)
	private String startDate;//消息开始时间
	 @Column(name="e_date",nullable=false,length=32)
	private String endDate;//消息结束时间
	public Integer getMessId() {
		return messId;
	}
	public void setMessId(Integer messId) {
		this.messId = messId;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getComId() {
		return comId;
	}
	public void setComId(String comId) {
		this.comId = comId;
	}
	public String getMessValue() {
		return messValue;
	}
	public void setMessValue(String messValue) {
		this.messValue = messValue;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	

}
